/*
 * @copyright 2011 Gerald Jacobson
 * @license GNU General Public License
 * 
 * This file is part of GameTimer.
 *
 * GameTimer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * GameTimer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with GameTimer. If not, see <http://www.gnu.org/licenses/>.
 */
package org.amphiption.gametimer.entity;

import android.graphics.Color;

/**
 * @author Amphiprion
 * 
 */
public class Player extends Entity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static enum DbField {
		ID, NAME, COLOR, FK_CONFIGURATION, DURATION
	}

	private String name;
	private int color;
	private int duration;
	private int counter;
	private String timerConfigurationId;

	public Player() {
		super();
		name = "";
		color = Color.WHITE;
	}

	public Player(String id) {
		super(id);
		name = "";
		color = Color.WHITE;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the color
	 */
	public int getColor() {
		return color;
	}

	/**
	 * @param color
	 *            the color to set
	 */
	public void setColor(int color) {
		this.color = color;
	}

	/**
	 * @return the counter
	 */
	public int getCounter() {
		return counter;
	}

	/**
	 * @param counter
	 *            the counter to set
	 */
	public void setCounter(int counter) {
		this.counter = counter;
	}

	/**
	 * @return the timerConfigurationId
	 */
	public String getTimerConfigurationId() {
		return timerConfigurationId;
	}

	/**
	 * @param timerConfigurationId
	 *            the timerConfigurationId to set
	 */
	public void setTimerConfigurationId(String timerConfigurationId) {
		this.timerConfigurationId = timerConfigurationId;
	}

	public int getDuration() {
		return duration;
	}

	public void setDuration(int duration) {
		this.duration = duration;
	}

}
